package games.gong.durid.service;

import games.gong.durid.entity.Permission;
import games.gong.durid.entity.Role;
import games.gong.durid.entity.User;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface UserService {
    int addUser(User user);
    int deleteUser(Long id);
    int updateUser(User user);
    User getUserById(Long id);
    List<User> getAllUsers();
    User getUserByUsername(String username);
    List<Role> getRolesByUserId(Long userId);
    List<Permission> getPermissionsByRoleId(Long roleId);
}